/*
 * IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
 * An IR LED must be connected to Arduino PWM pin 3.
 * Version 0.1 July, 2009
 * Copyright 2009 Ken Shirriff
 * http://arcfn.com
 */

#include "IRremote.h"

//IRsend irsend;
IRrecv irrecv(2);
decode_results result;

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

void loop() {
    /*for (int i = 0; i < 3; i++) {
      irsend.sendNEC(0x02FCB04F, 32); // Sony TV power code
      delay(3000);
    }*/
    
    if(irrecv.decode(&result)) {
        Serial.println(result.value, HEX);
        irrecv.resume();
    }
}

